﻿@model E5_KhuyenMaiVang.Models.CompanyView
@{
    ViewBag.Title = "DN_Them";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
@section menu
{
    <h3>
        Admin</h3>
    <ul class="nav">
        <li><a href="@Url.Action("DN_QuanLy", "Admin")"  >Quản lý khuyến mãi</a></li>
        <li><a href="@Url.Action("DN_Them", "Admin")" style="text-decoration:underline; font-weight:bold;">
            Thêm khuyến mãi</a></li>
    </ul>
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Ajax.BeginForm("DN_Them", "Admin", new AjaxOptions
    {
        InsertionMode = InsertionMode.Replace,
        HttpMethod = "POST",
        UpdateTargetId = "register"
    }))
{
<div class="top-bar">
    <h1>
        DOANH NGHIỆP</h1>
    <div class="breadcrumbs">
        <a href="#">Doanh nghiệp</a> / <a href="#">Thêm doanh nghiệp</a></div>
</div>
<div id="random_deal">
    <div class="title-content">
        THÔNG TIN DOANH NGHIỆP CỦA BẠN</div>
    <div class="register">
        <table width="100%" border="0">
            <tr>
                <td width="18%">
                    <small>@Html.LabelFor(model=>model.CompanyName)</small>
                </td>
                <td width="82%">
                    <div class="row">
                        @Html.EditorFor(model=>model.CompanyName) 
                        @Html.ValidationMessageFor(model=>model.CompanyName)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <small>@Html.LabelFor(model=>model.Address)</small>
                </td>
                <td>
                    <div class="row">
                        @Html.EditorFor(model=>model.Address) 
                        @Html.ValidationMessageFor(model=>model.Address)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <small>@Html.LabelFor(model=>model.Phone)</small>
                </td>
                <td>
                    <div class="row">
                        @Html.EditorFor(model=>model.Phone) 
                        @Html.ValidationMessageFor(model=>model.Phone)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <small>@Html.LabelFor(model=>model.Website)</small>
                </td>
                <td>
                    <div class="row">
                        @Html.EditorFor(model=>model.Website) 
                        @Html.ValidationMessageFor(model=>model.Website)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <small>@Html.LabelFor(model=>model.Email)</small>
                </td>
                <td>
                    <div class="row">
                        @Html.EditorFor(model=>model.Email) 
                        @Html.ValidationMessageFor(model=>model.Email)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <small>@Html.LabelFor(model=>model.Taxcode)</small>
                </td>
                <td>
                    <div class="row">
                        @Html.EditorFor(model=>model.Taxcode) 
                        @Html.ValidationMessageFor(model=>model.Taxcode)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <small>@Html.LabelFor(model=>model.Decription)</small>
                </td>
                <td>
                    <div class="row">
                        @Html.TextAreaFor(model=>model.Decription) 
                        @Html.ValidationMessageFor(model=>model.Decription)
                        <br />
                        <small><i>Giới thiệu cho chúng tôi về doanh nghiệp của bạn(giới hạn trong 500 kí tự).</i></small>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="title-content">
        THÔNG TIN TÀI KHOẢN</div>
    <div class="register">
        <table width="100%" border="0">
            <tr>
                <td width="18%">
                    <small>@Html.LabelFor(model=>model.Username)</small>
                </td>
                <td width="82%">
                    <div class="row">
                        @Html.EditorFor(model=>model.Username) 
                        @Html.ValidationMessageFor(model=>model.Username)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <small>@Html.LabelFor(model=>model.Password)</small>
                </td>
                <td>
                    <div class="row">
                        @Html.EditorFor(model=>model.Password) 
                        @Html.ValidationMessageFor(model=>model.Password)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <small>@Html.LabelFor(model=>model.ConfirmPassword)</small>
                </td>
                <td>
                    <div class="row">
                        @Html.EditorFor(model=>model.ConfirmPassword) 
                        @Html.ValidationMessageFor(model=>model.ConfirmPassword)
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="register">
        <input class="submit-form" name="submit" value="Thêm" type="submit" />
    </div>
    <br />
</div>
<table width="100%">
</table>
}